using System;
using System.Net;

public class ErrorReaction : ReactionBase
{

    public ErrorReaction(string message, HttpStatusCode code = HttpStatusCode.InternalServerError)
        : base(null) {
        this.Message = message;
        this.HttpStatusCode = code;
    }

    public string Message { get; private set; }
    public override HttpStatusCode HttpStatusCode {
        get;
        protected set;
    }
    public override string GetContent() {
        return string.Format(
@"<h1>{0}: {1}</h2>
{2}",
(int)HttpStatusCode, HttpStatusCode, Message);
    }

}